<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>系统信息</title>
    <link rel="shortcut icon" th:href="@{/img/favicon.ico}">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no">
    <!-- Bootstrap core CSS -->
    <link rel="stylesheet" type="text/css" th:href="@{/plugins/bootstrap-5.1.3/css/bootstrap.min.css}">
    <!-- Custom styles for this template -->
    <link rel="stylesheet" type="text/css" th:href="@{/css/admin/sys_info.css}">
    <script th:src="@{/plugins/jQuery/jquery.min.js}"></script>
    <script th:src="@{/plugins/bootstrap-5.1.3/js/bootstrap.bundle.min.js}"></script>
</head>
<body>
    <div class="container">
        <div class="col-sm-12">
            <div class="row">
                <div class="col-sm-6">
                    <div class="ibox float-e-margins">
                        <div class="ibox-title">
                            <h5>CPU</h5>
                        </div>
                        <div class="ibox-content">
                            <table class="table table-hover no-margins">
                                <thead>
                                <tr>
                                    <th>属性</th>
                                    <th>值</th>
                                </tr>
                                </thead>
                                <tbody>
                                <tr>
                                    <td>核心数</td>
                                    <td id="hxs"></td>
                                </tr>
                                <tr>
                                    <td>用户使用率</td>
                                    <td id="yh_syl"></td>
                                </tr>
                                <tr>
                                    <td>系统使用率</td>
                                    <td id="xt_syl"></td>
                                </tr>
                                <tr>
                                    <td>当前空闲率</td>
                                    <td id="dq_kxl"></td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                <div class="col-sm-6">
                    <div class="ibox float-e-margins">
                        <div class="ibox-title">
                            <h5>内存</h5>
                        </div>
                        <div class="ibox-content">
                            <table class="table table-hover no-margins">
                                <thead>
                                <tr>
                                    <th>属性</th>
                                    <th>内存</th>
                                    <th>JVM</th>
                                </tr>
                                </thead>
                                <tbody>
                                <tr>
                                    <td>总内存</td>
                                    <td id="mem_znc"></td>
                                    <td id="jvm_znc"></td>
                                </tr>
                                <tr>
                                    <td>已用内存</td>
                                    <td id="mem_yy_nc"></td>
                                    <td id="jvm_yy_nc"></td>
                                </tr>
                                <tr>
                                    <td>剩余内存</td>
                                    <td id="mem_sy_nc"></td>
                                    <td id="jvm_sy_nc"></td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row">
                <div class="col-sm-12">
                    <div class="ibox float-e-margins">
                        <div class="ibox-title">
                            <h5>服务器信息</h5>
                        </div>
                        <div class="ibox-content">
                            <div class="row">
                                <div class="col-sm-12">
                                    <table class="table table-hover margin bottom">
                                        <tbody>
                                        <tr>
                                            <td>服务器名称</td>
                                            <td id="server_name"></td>
                                            <td>操作系统</td>
                                            <td id="server_os"></td>
                                        </tr>
                                        <tr>
                                            <td>服务器IP</td>
                                            <td id="server_ip"></td>
                                            <td>系统架构</td>
                                            <td id="server_architecture"></td>
                                        </tr>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row">
                <div class="col-sm-12">
                    <div class="ibox float-e-margins">
                        <div class="ibox-title">
                            <h5>Java虚拟机信息</h5>
                        </div>
                        <div class="ibox-content">
                            <div class="row">
                                <div class="col-sm-12">
                                    <table class="table table-hover margin bottom">
                                        <tbody>
                                            <tr>
                                                <td>Java名称</td>
                                                <td id="jvm_name"></td>
                                                <td>Java版本</td>
                                                <td id="jvm_version"></td>
                                            </tr>
                                            <tr>
                                                <td>启动时间</td>
                                                <td id="jvm_start_time"></td>
                                                <td>运行时长</td>
                                                <td id="jvm_run_time"></td>
                                            </tr>
                                            <tr>
                                                <td colspan="1">安装路径</td>
                                                <td colspan="3" id="jvm_home"></td>
                                            </tr>
                                            <tr>
                                                <td colspan="1">项目路径</td>
                                                <td colspan="3" id="user_dir"></td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row">
                <div class="col-sm-12">
                    <div class="ibox float-e-margins">
                        <div class="ibox-title">
                            <h5>磁盘状态</h5>
                        </div>
                        <div class="ibox-content">
                            <div class="row">
                                <div class="col-sm-12">
                                    <table class="table table-hover margin bottom">
                                        <thead>
                                        <tr>
                                            <th>盘符路径</th>
                                            <th>文件系统</th>
                                            <th>盘符类型</th>
                                            <th>总大小</th>
                                            <th>可用大小</th>
                                            <th>已用大小</th>
                                            <th>已用百分比</th>
                                        </tr>
                                        </thead>
                                        <tbody id="sysFiles"></tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script th:src="@{/js/admin/sys_info.js}"></script>
</body>
</html>